package com.xiechuang.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 控制层
 * @Author xiechuang
 * @Date 2021/11/9
 */
@RestController
@RequestMapping("")
public class TestController {

    /**
     * 测试访问
     *
     * @return
     */
    @RequestMapping("/test")
    public String testHello() {
        return "test success：eureka-client02-demo";
    }

    /**
     * 测试feign调用
     *
     * @param name
     * @return
     */
    @RequestMapping(value = "/testFeign", method = RequestMethod.GET)
    public String testFeign(String name) {
        return "test success：eureka-client02-demo  name：" + name;
    }

}
